<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理后台</title>
<link href="Css/css.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
<!--
function fnOnPageChanged(page) {
	var url = '<?php echo $this->_url(null); ?>&page=' + page + '&catid=' + <?php echo isset($catid)?$catid:"null"; ?>;
	document.location.href = url;
}

function fnOnCreated() {
	var url = '<?php echo $this->_url('Picman',array('catid' => $catid)); ?>';
	document.location.href = url;
}

// -->
</script>
<style type="text/css">
<!--
body {
	background-color: #ddeef2;
}
-->
</style>
</head>
<body>
<div id="main_title"><a href="#">后台管理中心</a>—<?php echo $listTitle; ?><div class="opr"><button class="btnA" onclick="fnOnCreated();">新建发布</button></div>
</div>
<!--div id="main_title2">| <a href="#">添加帮助文档</a></div-->
<div id="main_list">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
  <tr>
    <td width="43%" align="center" bgcolor="#9EC1DE" class="title">标题</td>
    <td width="21%" align="center" bgcolor="#9EC1DE" class="title">所属栏目</td>
    <td width="11%" align="center" bgcolor="#9EC1DE" class="title">发布人</td>
    <td width="15%" align="center" bgcolor="#9EC1DE" class="title">发布时间</td>
    <td width="10%" align="center" bgcolor="#9EC1DE" class="title">操作</td>
  </tr>
  <?php $i = 0; foreach($rowset as $row): $css_class = $i % 2 ? 'even' : 'odd'; $rowid = array('id' => $row[$pk],'catid' => $catid); ?>
  <tr>
    <td align="left" bgcolor="#F4FAFB" class="content3"><?php echo h($row['title']); ?></a></td>
    <td align="center" bgcolor="#F4FAFB" class="content"><?php echo h($row['classes']['name']); ?></td>
    <td align="center" bgcolor="#F4FAFB" class="content"><?php echo h($row['user']['username']); ?></td>
    <td align="center" bgcolor="#F4FAFB" class="content"><?php echo date('Y-m-d', $row['dateline']); ?></td>
    <td align="center" bgcolor="#F4FAFB" class="content"><a href="<?php echo $this->_url('Picman', $rowid); ?>">编辑</a> | <a href="<?php echo $this->_url('remove', $rowid); ?>" onclick="return confirm('<?php echo h(_T('ui_p_remove_confirm')); ?>');">删除</a></td>
  </tr>
  <?php $i++; endforeach; ?>
</table>
</div>
<div id="main_copy">Copyright&copy;2003 – 2009 ITeam Monkey. All Rights Reserved ITeam Monkey 版权所有 </div>
</body>
</html>
